dhcpv6-ia: add missing limits header
authorÁlvaro Fernández Rojas <[email protected]>
Fri, 14 Nov 2025 16:42:35 +0000 (17:42 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Fri, 14 Nov 2025 21:54:26 +0000 (22:54 +0100)
commitd3dc577d7e843b21ecae0b17de4a6cce36b075db
tree407f2af6ad77a581594e141e586928d34a1b040f
parentbe7ca7c0792b185263ad86b961ea61129494a7f9
dhcpv6-ia: add missing limits header

Fix the following build error by including <limits.h>:
src/dhcpv6-ia.c: In function 'handle_addrlist_change':
src/dhcpv6-ia.c:495:53: error: 'INT_MAX' undeclared (first use in this function)
  495 |                                         a->fr_cnt = INT_MAX;
      |                                                     ^~~~~~~
src/dhcpv6-ia.c:33:1: note: 'INT_MAX' is defined in header '<limits.h>'; did you forget to '#include <limits.h>'?
   32 | #include <libubox/md5.h>
  +++ |+#include <limits.h>
   33 |
src/dhcpv6-ia.c:495:53: note: each undeclared identifier is reported only once for each function it appears in
  495 |                                         a->fr_cnt = INT_MAX;
      |                                                     ^~~~~~~

Fixes: 7136fbe390a5 ("dhcpv6-ia: split statefile handling to separate file")
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/311
src/dhcpv6-ia.c